<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

$news_id = $route->getAdminId();
$path_name = MAIN_DIR.DS."files".DS."img".DS."news".DS.$news_id;

$db->sendQuery("delete from `news` where `news_id` = '$news_id' limit 1");

deleteImgs($path_name);

goToPage("/admin/content/list");

?>
